import axios from '../utils/index';
import { Pat } from '@/typings/request';
import { requestInt } from '@/utils/service';
/**
 *  获取用户列表
 *  @param {*} data
 */
export function userList(data: any) {
    return requestInt({
        url: '/user/list',
        method: 'get',
        data,
    });
}
/**
 *  获取用户详情
 *  @param {*} data
 */
export function userDetail(data: any) {
    return requestInt({
        url: '/user/detail',
        method: 'get',
        data,
    });
}
/**
 *  禁用启用用户
 *  @param {*} data
 */
export function userDisable(data: any) {
    return requestInt({
        url: `/user/disable/${data.userId}?isDisable=${data.isDisable}`,
        method: 'put',
        data,
    });
}
/**
 *  删除用户
 *  @param {*} data
 */
export function userDelete(data: any) {
    return requestInt({
        url: `/user/delete/${data.userId}`,
        method: 'delete',
        data,
    });
}
/**
 *  获取技能列表
 *  @param {*} data
 */
export function skillTypeList(data: any) {
    return requestInt({
        url: `/eq/skill-type/list`,
        method: 'get',
        data,
    });
}

/**
 *  获取省市区
 *  @param {*} data
 */
export function getCoreRegion(data: any) {
    return requestInt({
        url: `/core/region`,
        method: 'get',
        data,
    });
}
